package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ZhwyChartMapper;
import com.ruoyi.domain.ZhwyChart;
import com.ruoyi.service.IZhwyChartService;

/**
 * 图表统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-08
 */
@Service
public class ZhwyChartServiceImpl implements IZhwyChartService 
{
    @Autowired
    private ZhwyChartMapper zhwyChartMapper;

    /**
     * 查询图表统计
     * 
     * @param id 图表统计主键
     * @return 图表统计
     */
    @Override
    public ZhwyChart selectZhwyChartById(Long id)
    {
        return zhwyChartMapper.selectZhwyChartById(id);
    }

    /**
     * 查询图表统计列表
     * 
     * @param zhwyChart 图表统计
     * @return 图表统计
     */
    @Override
    public List<ZhwyChart> selectZhwyChartList(ZhwyChart zhwyChart)
    {
        return zhwyChartMapper.selectZhwyChartList(zhwyChart);
    }

    /**
     * 新增图表统计
     * 
     * @param zhwyChart 图表统计
     * @return 结果
     */
    @Override
    public int insertZhwyChart(ZhwyChart zhwyChart)
    {
        return zhwyChartMapper.insertZhwyChart(zhwyChart);
    }

    /**
     * 修改图表统计
     * 
     * @param zhwyChart 图表统计
     * @return 结果
     */
    @Override
    public int updateZhwyChart(ZhwyChart zhwyChart)
    {
        return zhwyChartMapper.updateZhwyChart(zhwyChart);
    }

    /**
     * 批量删除图表统计
     * 
     * @param ids 需要删除的图表统计主键
     * @return 结果
     */
    @Override
    public int deleteZhwyChartByIds(Long[] ids)
    {
        return zhwyChartMapper.deleteZhwyChartByIds(ids);
    }

    /**
     * 删除图表统计信息
     * 
     * @param id 图表统计主键
     * @return 结果
     */
    @Override
    public int deleteZhwyChartById(Long id)
    {
        return zhwyChartMapper.deleteZhwyChartById(id);
    }
}
